﻿
@{
    One_day.Models.T_Base_User user = (One_day.Models.T_Base_User)Session["ticket"];
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.title</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Bootstrap Core CSS -->
    <link href="~/Content/sb/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <!-- MetisMenu CSS -->
    <link href="~/Content/sb/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="~/Content/sb/dist/css/sb-admin-2.css" rel="stylesheet">
    <!-- Morris Charts CSS -->
    <link href="~/Content/sb/vendor/morrisjs/morris.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="~/Content/sb/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <style>
        * {
            padding: 0px;
            margin: 0px;
        }

        header {
            height: 50px;
            line-height: 50px;
            background: red;
            color: white;
            text-align: center;
        }

        footer {
            height: 50px;
            line-height: 50px;
            background: red;
            color: white;
            text-align: center;
            position: fixed;
            bottom: 0px;
            width: 100%;
        }

        /*购物篮和个人中心css设定*/
        .choose {
            position: fixed;
            right:0px;
            bottom: 50px;
            line-height: 50px;
            
        }
            .choose ul {
                list-style: none;
                
            }
                .choose ul li {
                    margin-left: 10px;
                    
                    float: left;
                    
                }
        
    </style>
    @RenderSection("css", false)
</head>
<body>
    <div>
        <header> 奕晨商城</header>
        @{
            //若 已账号登录，显示用户名，否则显示登录/注册界面
            if (Session["ticket"] != null)
            {
               <div style="position:fixed;top:5px;right:5px;">
                   <a class="label" href="/user/loginout">@user.LoginName</a>
                   <img src="~/Upload/new.png" style="width:40px;height:40px;"/>
               </div>
            }
            else
            {
                <a class="btn btn-default" style="position:fixed;top:0px;right:0px;margin:5px; " href="~/User/Login">注册/登录</a>
            }
        }
        <div class="choose">
            <ul>
                <li ><a href="/yichen/shopstore?productId=-1&&num=-1"><img src="~/Upload/shopping_cart.jpg" style="width:60px;height:55px;"/></a></li>
                <li ><a href="/user/person_infor"><img src="~/Upload/setting.jpg" style="width:55px;height:55px;padding:5px;" /></a></li>
            </ul>
        </div>
        <footer>版权所有</footer>
        @RenderBody()
    </div>
    @RenderSection("js", false)
</body>

</html>
